package com.sloera.spring.beans.factorybean;

import lombok.AllArgsConstructor;
import lombok.ToString;

/**
 * @author sloera
 * @create 2020/4/6
 */
@ToString
@AllArgsConstructor
public class Car {
    public Car() {
        System.out.println("Car's Construstor……");
    }

    private String brand;
    private int price;

    public void setBrand(String brand) {
        System.out.println("setBrand……");
        this.brand = brand;
    }

    public void init() {
        System.out.println("init ……");
    }

    public void destroy() {
        System.out.println("destroy……");
    }
}
